package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.CouponClass;
import com.ecoolex.chinadutyfree.retailer.entity.CouponClassExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface CouponClassMapper {
    long countByExample(CouponClassExample example);

    int deleteByExample(CouponClassExample example);

    int deleteByPrimaryKey(Integer couponClassId);

    int insert(CouponClass record);

    int insertSelective(@Param("record") CouponClass record, @Param("selective") CouponClass.Column ... selective);

    CouponClass selectOneByExample(CouponClassExample example);

    List<CouponClass> selectByExample(CouponClassExample example);

    CouponClass selectByPrimaryKey(Integer couponClassId);

    CouponClass selectByPrimaryKeyWithLogicalDelete(@Param("couponClassId") Integer couponClassId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") CouponClass record, @Param("example") CouponClassExample example, @Param("selective") CouponClass.Column ... selective);

    int updateByExample(@Param("record") CouponClass record, @Param("example") CouponClassExample example);

    int updateByPrimaryKeySelective(@Param("record") CouponClass record, @Param("selective") CouponClass.Column ... selective);

    int updateByPrimaryKey(CouponClass record);

    int batchInsert(@Param("list") List<CouponClass> list);

    int batchInsertSelective(@Param("list") List<CouponClass> list, @Param("selective") CouponClass.Column ... selective);

    int logicalDeleteByExample(@Param("example") CouponClassExample example);

    int logicalDeleteByPrimaryKey(Integer couponClassId);
}